using ErrorCode;
using MediatR;
using System;
using System.Collections.Generic;

namespace WriteAPI.Command.生产计划
{
    /// <summary>
    /// 导出生产计划命令
    /// </summary>
    public class ExportProductionPlanCommand : IRequest<APIResult<byte[]>>
    {
        /// <summary>
        /// 要导出的计划ID列表，为空时导出所有符合条件的数据
        /// </summary>
        public List<int>? PlanIds { get; set; }

        /// <summary>
        /// 搜索关键词(可搜索计划编号/计划主题)
        /// </summary>
        public string? Keyword { get; set; }

        /// <summary>
        /// 开始日期
        /// </summary>
        public DateTime? StartDate { get; set; }

        /// <summary>
        /// 结束日期
        /// </summary>
        public DateTime? EndDate { get; set; }

        /// <summary>
        /// 导出类型（Excel/PDF/CSV）
        /// </summary>
        public string ExportType { get; set; } = "Excel";
    }
} 